<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.netcombine.freewill.constants.*, com.netcombine.freewill.vo.Local_CommunityVo, com.netcombine.freewill.lib.Paging,com.netcombine.freewill.vo.PagingVo " %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
Local_CommunityVo local_communityVo = (Local_CommunityVo)request.getAttribute("local_CommunityInfo");

String community_name = "";
String member_cnt = "";
String share_cnt = "";
String request_cnt = "";

if(local_communityVo != null){
	
	community_name = local_communityVo.getCommunity_name() == null ? "" : local_communityVo.getCommunity_name();
	member_cnt = local_communityVo.getMember_cnt() == null ? "" : local_communityVo.getMember_cnt();
	share_cnt = local_communityVo.getShare_cnt() == null ? "" : local_communityVo.getShare_cnt();
	request_cnt = local_communityVo.getRequest_cnt() == null ? "" : local_communityVo.getRequest_cnt();
}

%>
<script>
function UserPopup(){
	
	window.open("<%= request.getContextPath() %>/user/list","회원리스트",
				"width=500,height=500, toolbar=no, location=no, status=no, munubar=no,scrollvars=yes,resizable=no,left=300, top=300");
}

</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%=PageInfo.TITLE%> - 지역 커뮤니티 상세페이지</title>
	<link rel="stylesheet" href="../css/default.css" media="all">
	<script type="text/javascript" src="../js/jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="../js/common.js"></script>
</head>
<body >
<div class="wrap">

		<!--#include file= 'header.asp'-->

<!-- Container -->
<div class="container">
<div>
	<!-- LNB -->
<!--#include file= 'lnb.asp'-->
<!-- LNB  //-->

<!-- Content -->
<div class="content">

	<!-- locatioin -->
<div class="location">
	<h1>커뮤니티 관리</h1>
	<ul>
		<li class="home"><a href="#none"><span>home</span></a> &gt;</li>
		<li><strong>커뮤니티 관리</strong></li>
	</ul>
</div>
<!-- locatioin // -->

<!-- table -->
<div class="tb_write1">
	<table summary="커뮤니티분류, 커뮤니티명, 공개여부, 커뮤니티소개, 커뮤니티이미지, 개설일, 매니저, 상위커뮤니티, 가입자, 공유, 요청">
		<caption>커뮤니티관리 작성</caption>
<colgroup>
<col style="width:15%;">
<col style="width:*;">
</colgroup>
		<tbody>
		<tr>
			<th scope="row"><div>커뮤니티 분류</div></th>
			<td>지역</td>
		</tr>
		<tr>
			<th scope="row"><div>커뮤니티명</div></th>
			<td><div class="in_text"><input type="text" name="" title="레이블 텍스트" class="i_text inw3" value = "<%=community_name%>"></div></td>
		</tr>
		<tr>
			<th scope="row"><div>공개여부</div></th>
			<td>
				<label for=""><input type="radio" name="r_check"/>공개</label>
				<label for=""><input type="radio" name="r_check"/>비공개</label>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>커뮤니티 소개</div></th>
			<td><div class="i_textarea taw1"><textarea>커뮤니티를 소개하는 글입니다. 100자 이내로 작성 됩니다.</textarea></div>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>커뮤니티 이미지</div></th>
			<td>
				<div class="comu_img"><img src="../img/img_lecturer01.png" width="100%"/></div>
				<p>JPG, PNG, GIF (100K) / 100 X 200 px</p>
				<div class="i_file"><input name="" type="file" title="레이블 텍스트"></div>
			</td>
		</tr>
		<tr>
			<th scope="row"><div>개설일</div></th>
			<td>2013년 12월 12일</td>
		</tr>
		<tr>
			<th scope="row">상위 커뮤니티</th>
			<td>가입자 상위 지역</td>
		</tr>
		<tr>
			<th scope="row"><div>매니저</div></th>
			<td><a href="#none" class="link_under">홍길동</a></td>
		</tr>
		<tr>
			<th scope="row">가입자</th>
			<td><a href="javascript:UserPopup();" class="link_under" ><%=member_cnt %></a></td>
		</tr>
		<tr>
			<th scope="row">공유</th>
			<td><a href="#none" class="link_under"><%=share_cnt %>건</a> (물품 : 320건 / 재능 : 51건 / 장소 : 17건)</td>
		</tr>
		<tr>
			<th scope="row">요청</th>
			<td><a href="#none" class="link_under"><%=request_cnt %>건</a> (물품 : 55건 / 재능 : 21건 / 장소 : 3건)</td>
		</tr>
		</tbody>
	</table>
</div>
<!-- table // -->

<!-- btn -->
<div class="btn_box flL">
	<span class="btn_gray1"><a href="#none">커뮤니티 삭제</a></span>
</div>
<div class="btn_box flR">
	<span class="btn_gray1"><a href="#none">정보수정</a></span>
	<span class="btn_gray1"><a href="<%= request.getContextPath() %>/community/local_list">목록</a></span>
</div>
<!-- btn // -->

</div>
<!-- Content // -->
</div>
</div>
<!-- Container // -->
	</div>
</body>
</html>